#!/usr/bin/make -f

GEN?=~/Downloads/pywebgraph-2.72/genwebgraph.py -s -u undirected -f simple 

V?=30
E?=150
PREFIX=g_${V}_${E}

gen:
	${GEN} -v ${V} -e ${E} -o /tmp/${PREFIX}.simple
	cat /tmp/${PREFIX}.simple | awk '{print $$1 "\t" $$3}' > ~/data/${PREFIX}.txt
	./dlm2dot.py ~/data/${PREFIX}.txt > /tmp/${PREFIX}.dot
	fdp -Tpng -o ~/data/${PREFIX}.png /tmp/${PREFIX}.dot

